package com.biomatch.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.biomatch.domain.Group;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface GroupMapper extends BaseMapper<Group> {
    List<Group> selectGroupList(Map<String, Object> params);

    void deleteGroupById(Group group);

    void deleteGroupAndUser(String Groupid);

    void insertGroupAndUser(@Param(value = "groupId") String GroupId, @Param(value = "userId")String UserId);


    int findCountByMap(Map<String, Object> params);
}
